import Null from './null.vue';
import Vue from 'vue';
const Constructor = Vue.extend(Null);
const instance = new Constructor();
export default {
  bind(el, binding, vnode) {
    if (binding.value) {
      el.appendChild(instance.$mount().$el);
    }
  },
  update(el, binding, vnode) {
    if (binding.value) {
      el.appendChild(instance.$mount().$el);
    } else {
      if (el.contains(instance.$mount().$el)) {
        el.removeChild(instance.$mount().$el);
      }
    }
  }
};
